package cn.tedu.ivos.controller;

import cn.tedu.ivos.pojo.LoginUserParam;
import cn.tedu.ivos.pojo.LoginUserVO;
import cn.tedu.ivos.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LoginController {
    @Autowired
    private UserService userService;
    @PostMapping("/login")
    public LoginUserVO login(@RequestBody LoginUserParam loginUserParam)
    {
        return userService.login(loginUserParam);
    }
}
